#ifndef CONNECTTODATABASE_H
#define CONNECTTODATABASE_H
#include <QtSql/QSqlDatabase>

class ConnectToDatabase
{
public:
    ConnectToDatabase();
    QSqlDatabase con() const;
    bool doConnect(QString driver, QString hostname, QString databasename, QString username, QString password);
    void close(void);
    bool isOpen(void) const;
private:
    QSqlDatabase m_db;
};

#endif // CONNECTTODATABASE_H
